/*
 * 正则验证规则
 * */
export default {
    checkMobile: /^1[3|4|5|6|7|8|9][0-9]{9}$/,
    checkTelephone: /^0\d{2,3}-?\d{7,8}$/,
    checkID: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/, //身份证
    checkEmail: /^\w+((.\w+)|(-\w+))@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+).[A-Za-z0-9]+$/,
    checkUrl: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/,
    checkCaptcha: /^\d{6}$/, //验证码
    checkPrice: /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/, //价格
    checkInt: /^[0-9]+$/, //整数
    trim: /^\s+|\s+$/g, //空格
}
